package huu.eventLoop;

import java.util.concurrent.TimeUnit;

/**
 * @author huu
 * @create 2025-08-28-14:41
 */
public interface EventLoopGroup {

    // 执行任务
    void execute(Runnable runnable);

    // 延迟任务
    void schedule(Runnable task, long delay, TimeUnit unit);

    // 定时任务
    void scheduleAtFixedRate(Runnable task, long initialDelay, long period, TimeUnit unit);

    EventLoop next();
}
